package com.example.administrator.xtu_community.activity;

import androidx.appcompat.app.AppCompatActivity;
import androidx.cardview.widget.CardView;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.ImageButton;
import com.example.administrator.xtu_community.R;


public class SettingActivity extends AppCompatActivity {

    private ImageButton settingBack;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_setting);

        settingBack = findViewById(R.id.setting_back);
        settingBack.setOnClickListener((View v) -> finish());
        CardView settingFirst = findViewById(R.id.setting_first);
        settingFirst.setOnClickListener((View v) -> finish());
        CardView settingSecond = findViewById(R.id.setting_second);
        settingSecond.setOnClickListener((View v) -> finish());
        CardView settingThird = findViewById(R.id.setting_third);
        settingThird.setOnClickListener((View v) -> finish());
        CardView settingFourth = findViewById(R.id.setting_fourth);
        settingFourth.setOnClickListener((View v) -> finish());
        CardView settingFifth = findViewById(R.id.setting_fifth);
        settingFifth.setOnClickListener((View v) -> finish());
        CardView settingSixth = findViewById(R.id.setting_sixth);
        settingSixth.setOnClickListener((View v) -> finish());
        CardView settingSeventh = findViewById(R.id.setting_seventh);
        settingSeventh.setOnClickListener((View v) -> finish());
        CardView settingEighth = findViewById(R.id.setting_eighth);
        settingEighth.setOnClickListener((View v) -> finish());
        CardView about = findViewById(R.id.setting_ninth);
        about.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(SettingActivity.this, AboutActivity.class);
                startActivity(intent);
            }
        });
        CardView settingTenth = findViewById(R.id.setting_tenth);
        settingTenth.setOnClickListener((View v) -> finish());

    }
}